import Vue from 'vue';

const Teams = {
  getTeamList: async (battleId) => {
    let data = await Vue.prototype.$axios.get('data/teams.json');
    if (battleId) return data.data[battleId];
    else {
      let values = Object.values(data.data);
      return values[values.length - 1];
    }
  }
}

export default Teams;
